package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备管理对象 device
 * 
 * @author ruoyi
 * @date 2025-01-06
 */
public class Device extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    private Integer deviceId;

    /** 设备序列号 */
    @Excel(name = "设备序列号")
    private String deviceNum;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备类型（0：空调，1：电灯，2：投影仪，3：窗帘，4：音响） */
    @Excel(name = "设备类型", readConverterExp = "0=空调,1=电灯,2=投影仪,3=窗帘,4=音响")
    private String deviceType;

    /** 使用状态（0：正常使用，1：不能正常使用） */
    @Excel(name = "使用状态", readConverterExp = "0=：正常使用，1：不能正常使用")
    private String status;

    /** 温度 */
    @Excel(name = "温度")
    private Long temp;

    /** 大小 */
    @Excel(name = "大小")
    private Long size;

    /** 开关（0：开，1：关） */
    @Excel(name = "开关", readConverterExp = "0=开启,1=关闭")
    private String isActive;

    /** 会议室ID */
    @Excel(name = "会议室ID")
    private Long roomId;

    /** 会议室地址（非数据库字段） */
    @Excel(name = "会议室地址")
    private String roomAddress;

    public void setDeviceId(Integer deviceId)
    {
        this.deviceId = deviceId;
    }

    public Integer getDeviceId() 
    {
        return deviceId;
    }
    public void setDeviceNum(String deviceNum)
    {
        this.deviceNum = deviceNum;
    }

    public String getDeviceNum()
    {
        return deviceNum;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setDeviceType(String deviceType) 
    {
        this.deviceType = deviceType;
    }

    public String getDeviceType() 
    {
        return deviceType;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setTemp(Long temp) 
    {
        this.temp = temp;
    }

    public Long getTemp()
    {
        return temp;
    }
    public void setSize(Long size) 
    {
        this.size = size;
    }

    public Long getSize() 
    {
        return size;
    }
    public void setIsActive(String isActive) 
    {
        this.isActive = isActive;
    }

    public String getIsActive() 
    {
        return isActive;
    }
    public void setRoomId(Long roomId) 
    {
        this.roomId = roomId;
    }

    public Long getRoomId() 
    {
        return roomId;
    }

    public String getRoomAddress() {
        return roomAddress;
    }

    public void setRoomAddress(String roomAddress) {
        this.roomAddress = roomAddress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceId", getDeviceId())
            .append("deviceNum", getDeviceNum())
            .append("deviceName", getDeviceName())
            .append("deviceType", getDeviceType())
            .append("status", getStatus())
            .append("temp", getTemp())
            .append("size", getSize())
            .append("isActive", getIsActive())
            .append("roomId", getRoomId())
            .append("roomAddress", getRoomAddress())
            .toString();
    }
}
